package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.entity.CustomerMainOriginal;
import com.isunland.managesystem.entity.CustomerNeed;

public class CustomerNeedActivity extends SingleFragmentActivity {

  @Override protected Fragment createFragment() {

    int type = getIntent().getIntExtra(CustomerNeedFragment.EXTRA_TYPE, 0);
    CustomerNeed customerNeed =
        (CustomerNeed) getIntent().getSerializableExtra(CustomerNeedFragment.EXTRA_CUSTOMER_NEED);
    CustomerMainOriginal.rCustomerMain mCustomerDetail =
        (CustomerMainOriginal.rCustomerMain) getIntent().getSerializableExtra(
            CustomerNeedFragment.CUSTOMERMAIN);
    return CustomerNeedFragment.newInstance(customerNeed, type, mCustomerDetail);
  }
}
